package com.gy.smart_market_web.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gy.smart_market_web.dao.TestUserDao;
import com.gy.smart_market_web.entity.TestUser;

@Service
public class TestUserService {

    @Autowired
    private TestUserDao testUserDao;

    public Long getFirstId(){
        return testUserDao.findFirstId();
    }

    public String addTestUser(TestUser testUser){
        int c = testUserDao.insertAnUserTest(testUser);
        if(c>0){
            return "success";
        }
        return "failed";
    }

}
